package com.cloud.order.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 部门表(Dept) 实体类
*
* @author zhangxun
* @since 2020-08-24
*/
@Data
@TableName(value = "dept")
public class Dept implements Serializable {
    private static final long serialVersionUID=1L;
    /*** 部门ID*/
    @TableId(type = IdType.AUTO)
    private Long deptId;

    /*** 上级部门ID*/
    @TableField("parenid")
    private Long parenid;

    /*** 部门名称*/
    @TableField("dept_name")
    private String deptName;

    /*** 排序*/
    @TableField("order_num")
    private Integer orderNum;

    /*** 创建时间*/
    @TableField("create_time")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /*** 修改时间*/
    @TableField("modify_time")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifyTime;

}